Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

117
Vistas
How to write an XML tag with “<” using XMLHttpRequest command prompt echo command

From other StackOverflow posts I am aware of the double quote state machine and the usage of ^< (^ as an escape character). Still I can't make it work:

Hereby my attempts (with their results):

var xmldata = "echo ^<?xml version=\"1.0\" encoding=\"utf-8\"?^> >> MyFile.xml |";

Javascript code:

var xmlhttp = new XMLHttpRequest();
var url = '/?uri'

var xmldata = "echo ^<?xml version=\"1.0\" encoding=\"utf-8\"?^> >> MyFile.xml |";


xmlhttp.onreadystatechange = function() {
    if (xmlhttp.readyState == XMLHttpRequest.DONE) {
       if (xmlhttp.status == 200) {
           console.log(xmlhttp.responseText);
       }
    }
};

xmlhttp.open("POST",url, true);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send("mode=exec&path=convert|"+xmldata);

final command line:

C:\Users\window7_32\WWW\>C:\Windows\sys
tem32\cmd.exe  /S /D /c "convert|echo ^<?xml version=^"1.0^" encoding=^"utf-8^"?^> >>MyFile.xml|calc "

I need to run three programs,"convert"、"echo "、"calc "

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda